<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/comm/mytags.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="后台管理系统">
    <meta name="description" content="致力于提供通用版本后台管理解决方案">

    <link rel="shortcut icon" href="${ctx}/static/img/favicon.ico">
    <link rel="stylesheet" href="${ctx}/static/layui_v2/css/layui.css">
    <link rel="stylesheet" href="${ctx}/static/css/global.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/common.css" media="all">
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/personal.css" media="all">
    <link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_9h680jcse4620529.css">
    <script src="${ctx}/static/layui_v2/layui.js"></script>

<body>
<div class="larry-grid layui-anim layui-anim-upbit larryTheme-A ">
    <div class="larry-personal">
        <div class="layui-tab layui-tab-brief" lay-filter="filterSysLogTab">
            <ul class="layui-tab-title">
                <li class="layui-this">班级列表</li>
            </ul>
            <div class="layui-tab-content" style="padding: 0px">
                <!-- 业务日志TAB -->
                <div class="layui-tab-item layui-show">
                    <blockquote class="layui-elem-quote mylog-info-tit" style="border-bottom: 0px; margin: 10px 15px;">

                        <div class="layui-form-item" style="margin-bottom: 0px;">
                            <input type="hidden" id="currentDate" value="${currentDate}">
                            <form class="layui-form" id="sysSearchForm">
                                <div class="layui-inline" style="margin: 0px;">
                                    <input type="hidden" name="logType" value="info">
                                    <%--<div class="layui-input-inline" style="width:110px;">
                                        <select name="searchTerm">
                                            <option value="logTitleTerm">日志标题</option>
                                            <option value="logMethodTerm">请求方式</option>
                                        </select>
                                    </div>--%>
                                    <label class="layui-form-label">班级编号</label>
                                    <div class="layui-input-block">
                                        <select id="classCodeFilter" name="classId" lay-filter="classCodeFilter" lay-verify="classCodeFilter">
                                            <option value="">请选择</option>
                                            <%--<option value="0">0-菜单</option>
                                           <option value="1">1-按钮</option>--%>
                                        </select>
                                    </div>
                                    <div class="layui-inline"  style="margin:0px;">
                                        <a class="layui-btn layui-btn-normal stuAdd_btn"> <i class="layui-icon larry-icon larry-xinzeng1"></i>排课</a>
                                    </div>
                                    <div class="layui-inline"  style="margin:0px;">
                                        <a class="layui-btn layui-btn-normal queryStu_btn"> <i class="layui-icon larry-icon larry-xinzeng1"></i>查询</a>
                                    </div>
                                </div>
                                <%-- <div class="layui-inline" style="margin:0px;">
                                     <label class="layui-form-label" style="width:auto;">请求时间</label>
                                     <div class="layui-input-inline" style="width:145px;">
                                         <input type="text" class="layui-input" id="beginTime" name="beginTime" placeholder="请选择" readonly>
                                     </div>
                                 </div>--%>
                               <%-- <div class="layui-inline" style="margin:0px;">
                                    <a class="layui-btn sysSearch_btn" lay-submit lay-filter="sysSearchFilter"><i class="layui-icon larry-icon larry-chaxun7"></i>查询</a>
                                </div>
                                <div class="layui-inline"  style="margin:0px;">
                                    <a class="layui-btn layui-btn-normal stuAdd_btn"> <i class="layui-icon larry-icon larry-xinzeng1"></i>新增班级</a>
                                </div>
                                <div class="layui-inline" style="margin:0px;">
                                    <a class="layui-btn layui-btn-normal excelSysLogExport_btn"  style="background-color:#5FB878"> <i class="layui-icon larry-icon larry-danye"></i>导出</a>
                                </div>--%>

                            </form>
                        </div>
                    </blockquote>
                    <div class="larry-separate"></div>
                    <div style=" margin: 10px 15px;">
                        <!--  业务日志列表 -->
                        <table id="stuTableList" lay-filter="stuTableId" ></table>
                    </div>
                </div>

            </div>

        </div>
    </div>
</div>

<script type="text/javascript">
    var $,table,common;
    layui.config({
        base : "${ctx}/static/js/"
    }).use(['form', 'table','common','element','laydate'], function () {
        $ =  layui.$;
        table = layui.table;
        common = layui.common;

        var  form = layui.form,
            element = layui.element,
            laydate = layui.laydate;

        //表格加载
        classCodeInit();

        function classCodeInit() {
            //加载班级下拉框
            $.ajax({
                url : '${ctx}/classes/all_class_list.do',
                type : 'post',
                async: false,
                success : function(data) {
                    if(data != "" ){
                        $('#classCodeFilter option').not(":first").remove();
                        $(data).each(function(index,item){
                            $("#classCodeFilter").append(
                                '<option value="'+item.id+'">'+item.className+'</option>'
                            );
                        });

                    }
                }
            });
            form.render('select');
        };



        $(".stuAdd_btn").click(function(){
            var classId = $("#classCodeFilter").val();
            if(""==classId){
                alert("请选择班级");
                return;
            }
            var url = "${ctx}/courses/goto_work_out_teaching_scheduleV2.do?classId="+classId;
            common.cmsLayOpen('排课内容',url,'1000px','700px');
        });


        $(".queryStu_btn").click(function(){
            var classId = $("#classCodeFilter").val();
            if(""==classId){
                alert("请选择班级");
                return;
            }
            var url = "${ctx}/courses/goto_work_out_teaching_scheduleShow.do?classId="+classId;
            common.cmsLayOpen('排课内容',url,'1000px','700px');
        });


    });







</script>

<script type="text/html" id="stuStatusTpl">

    {{# if(d.sex == 0){ }}
    <span style="color:#5FB878;font-weight:bold"> 0-通过</span>
    {{# } else if(d.sex == 1){ }}
    <span style="color:#FF5722;font-weight:bold"> 1-不通过</span>

    {{# } else { }}
    {{d.userStatus}}
    {{# }  }}
</script>


<!--工具条 -->
<script type="text/html" id="stuBar">
    <div class="layui-btn-group">
        <a class="layui-btn layui-btn-xs layui-btn-danger stu_fail" lay-event="stu_fail"><i class="layui-icon larry-icon larry-ttpodicon"></i>删除</a>
    </div>
</script>




</body>
</html>